Micron Document
welo git mirrors

Node / public / reticulum / commits / 524f206

Commit 524f2068cdfceb5cde0d52cf383f02fef3c9f777


Parents : 5db089f
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Date : 2026-05-08T02:47:43+02:00

Fixed regression in link close handling in rnstatus and rnpath remote management

Changes

2 files changed, 4 insertions(+), 2 deletions(-)


Diff

diff --git a/RNS/Utilities/rnpath.py b/RNS/Utilities/rnpath.py
index e86b2e2b1..5b0a30dbc 100644
--- a/RNS/Utilities/rnpath.py
+++ b/RNS/Utilities/rnpath.py
@@ -59,7 +59,8 @@ def connect_remote(destination_hash, auth_identity, timeout, no_output = False,
remote_identity = RNS.Identity.recall(destination_hash)
def remote_link_closed(link):
- if link.teardown_reason == RNS.Link.TIMEOUT:
+ if link.teardown_reason == RNS.Link.INITIATOR_CLOSED: return
+ elif link.teardown_reason == RNS.Link.TIMEOUT:
if not no_output:
print(output_rst_str, end="")
print("The link timed out, exiting now")

diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py
index cba8928a1..cb6ce3d6d 100644
--- a/RNS/Utilities/rnstatus.py
+++ b/RNS/Utilities/rnstatus.py
@@ -81,7 +81,8 @@ def get_remote_status(destination_hash, include_lstats, identity, no_output=Fals
remote_identity = RNS.Identity.recall(destination_hash)
def remote_link_closed(link):
- if link.teardown_reason == RNS.Link.TIMEOUT:
+ if link.teardown_reason == RNS.Link.INITIATOR_CLOSED: return
+ elif link.teardown_reason == RNS.Link.TIMEOUT:
if not no_output:
print("\r \r", end="")
print("The link timed out, exiting now")

Served by rngit 1.4.2 - Generated in 0.02s